Delegate = UIApplication sharedApplication] delegate]; does not work in init: only viewDidLoad?

Is this view controller in your MainWindow. Xib file (or whatever the main . Xib in your project is called)?

If so, the app delegate is likely also created when that file is loaded, and the app delegate probably is nil at time your view controller is created. If your app delegate has a reference to this view controller, have it set itself as the view controller's delegate in -applicationDidFinishLoadin:withOptions: or just connect the app delegate to the view controller's -delegate outlet in the . Xib file.

You shouldn't use -init method. Sometimes it's not being called. Use theese methods for additional initialization.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions